<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />



<script>
 	var ctx="";
 	var offsettime = '-14400000';
 	var current = parseInt('1536031865863',10) || 0;
</script>

<script type="text/javascript" src="js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="js/jquery.pager.js"></script>
<script type="text/javascript" src="js/jquery-ui.js" ></script>
<link rel="stylesheet" type="text/css" href="css/page.css">
<link rel="stylesheet" type="text/css"	href="css/jquery-ui-1.9.1.custom.css">
<script type="text/javascript" src="js/WdatePicker.js"></script>
<title></title>
<link type="text/css" href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<link rel="stylesheet" href="css/yhck.css"	type="text/css" />
<link rel="stylesheet" href="css/stan.css" type="text/css" />
<link rel="stylesheet" href="css/bank.css" type="text/css" />
<script type="text/javascript" src="js/jquery-ui.js" ></script>

	
<style type="text/css">
	#DepositTabs {
		font-size: 12px;
	}
	#pay_info{
		margin: 10px auto;
	}
	div.lable{
		text-align: right;
		margin-right: 5px;
	}
	#vPic{
		margin-top: 10px;
		margin-left: 3px;
	}
	.pay_info .input input{
		margin: 4px
	}
	[value="重设"]{
		margin-left: 5px;
	}
	body{
		overflow: hidden;
	}
	.star{
		padding: 0;
	}
	.fastSelectMoney.moneySelected {
        background: #fcb773;
        color: white;
	}
	.fastSelectMoney {
	    text-align: center;
	    background: white;
	    border-radius: 4px;
	    padding: 4px 5px;
	    margin: 0 2px;
	    max-width: 24%;
	    border: 1px solid #bbb;
	    cursor: pointer;
	    width: 35px;
        line-height: 15px;
        height: 15px;
        display: inline-block;
	}
</style>
<!--[if IE 6]>
     <script type="text/javascript">
     //修正ie6 bug
     try {
          document.execCommand("BackgroundImageCache", false, true);
     } catch(err) {}
     </script>
 <![endif]-->
<script type='text/javascript'>
var sub=0;
$(function(){
	var upMoney = parseFloat('10000');
	//var dwMoney2 = parseFloat('10.00');
	var dwMoney = parseFloat('50.00');
	var d = new Date();
	var years = d.getFullYear(); 
	var month = add_zero(d.getMonth()+1);
	var days = add_zero(d.getDate());
	var hours = add_zero(d.getHours());
	var minutes = add_zero(d.getMinutes());
	var seconds=add_zero(d.getSeconds()); 
	$('#EST_reciprocal').html(years+'/'+month+'/'+days+' - '+hours+':'+minutes+':'+seconds);
	var timerID = setInterval("dispTime()",1000);
	//优惠次数 类型 0 -首次 1 -每次
	var discountTimes = 1;
	//优惠百分比
	var percentageDiscount = 0.5;
	//稽核优惠标准
	var auditDiscountStandard = 1.00000;
	//打码倍数
	var codeMultiple = 1;
	//是否放弃存款优惠
	var preDepositStatusOnline = 0;
	//已经优惠次数
	var haveDiscountTimes = 0;
	//优惠系数 -次数
	var preRatioOnline = 9999999; var preUp = 999999.00000;
	//是否显示快选金额
	var isShowFastSelectMoney = 0;
	if(isShowFastSelectMoney && isShowFastSelectMoney == 1) {//如果需要显示快选金额，则获取具体快选金额属性
		//快选金额列表
		var moneyList = [];
		var fastSelectMoney1 = "50";
		if(fastSelectMoney1 && fastSelectMoney1 >= dwMoney && fastSelectMoney1 <= upMoney) {
			moneyList.push(parseInt(fastSelectMoney1));
		}
		var fastSelectMoney2 = "100";
		if(fastSelectMoney2 && fastSelectMoney2 >= dwMoney && fastSelectMoney2 <= upMoney) {
			moneyList.push(parseInt(fastSelectMoney2));
		}
		var fastSelectMoney3 = "500";
		if(fastSelectMoney3 && fastSelectMoney3 >= dwMoney && fastSelectMoney3 <= upMoney) {
			moneyList.push(parseInt(fastSelectMoney3));
		}
		var fastSelectMoney4 = "1000";
		if(fastSelectMoney4 && fastSelectMoney4 >= dwMoney && fastSelectMoney4 <= upMoney) {
			moneyList.push(parseInt(fastSelectMoney4));
		}
		var fastSelectMoney5 = "5000";
		if(fastSelectMoney5 && fastSelectMoney5 >= dwMoney && fastSelectMoney5 <= upMoney) {
			moneyList.push(parseInt(fastSelectMoney5));
		}
		$("#moneyDetails").show();
		//对 快选金额数组进行升序排序
		if(moneyList.length > 0) {
			moneyList.sort(function(a,b){
				if(a > b) {
					return 1;
				} else if(a < b) {
					return -1
				} else {
					return 0;
				}    
			});
			for(var i = 0; i < moneyList.length; i++) {
				var spanEle = $("<span class='fastSelectMoney'>" + moneyList[i] + "</span>");
				$("#moneyDetails").append($(spanEle));
				$(spanEle).click(function(){
					$("#p3_Amt").val($(this).html());
					$(".fastSelectMoney").removeClass("moneySelected");
					$(this).addClass("moneySelected");
					p3AmtChange();
				});
			}
		} else {
			var isInputMoneyStatus = "1";
			if(isInputMoneyStatus == 0){
				$("#moneyDetails").html("无可用快选金额，请联系客服！");
			}
		}
	}
	
	//通过次数范围控制显示
	if(0 == discountTimes){
		//首次
		if(0 != haveDiscountTimes){
			$('#applydiscountLi').hide();
			$('#applydiscount_id').find("option[value='2']").attr("selected",true);
		}
	}else if(1 == discountTimes){
		//非首次
		if(preRatioOnline < parseInt(haveDiscountTimes)+1){
			$('#applydiscountLi').hide();
			$('#applydiscount_id').find("option[value='2']").attr("selected",true);
		}
	}
	
	if(0 == preDepositStatusOnline){
		//不可放弃优惠 默认选中优惠  不可选
		$('#applydiscount_id').find("option[value='1']").attr("selected",true);
		$('#applydiscount_id').attr("disabled",true);
		$('#applydiscount_id').css('background','#A9A9A9');
	}
	
	isDigit = function(str) {
		var patrn = /^\d+$/;
		return patrn.test(str);
	};
	isMobile = function(str) {
		var patrn = /^0?1((3[0-9]{1})|(59)){1}[0-9]{8}$/;
		return patrn.test(str);
	};
	isPhone = function(str) {
		var patrn = /^(0[\d]{2,3}-)?\d{6,8}(-\d{3,4})?$/;
		return patrn.test(str);
	};
	isEmail = function(str) {
		var patrn = /^[\w-]+@[\w-]+(\.[\w-]+)+$/;
		return patrn.test(str);
	};
	getKey = function(){
		document.getElementById('vPic').src="validCode.php?type=pay&t="+new Date().getTime();
		document.getElementById('rmNum').value='';
	};
	var reg = /^\d+\.?\d{0,2}$/;
	p3AmtChange = function(){
		var money = $('#p3_Amt').val();
		if(money == "" || isNaN(money)){
			$('#amtid').html('&nbsp;请您输入充值金额');
			return;
		}else {
			var amt = $('#p3_AmtPoint').val();
		    var point =  parseFloat("0"+amt) ;
		    money = parseFloat($('#p3_Amt').val()) + point ;
			
			var yhMoney = (money*parseFloat('0.5')/100);
			var codeMultipleNum = 1;			
			
			if(0 == discountTimes){
				//首次
				if(0 == haveDiscountTimes){
					if(preUp <= yhMoney){
						yhMoney = preUp;
					} 
					yhMoney = round2(yhMoney,2); 
					if(money>=auditDiscountStandard){
						if(money >= (upMoney + 0.0001)){
							yhMoney = (upMoney*parseFloat('0.5')/100);
						}
						if(preUp <= yhMoney){
							yhMoney = preUp;
						}
						yhMoney = round2(yhMoney,2);
					}else{
						yhMoney = 0;
					}
				}else{
					yhMoney = 0;
				}
				$('#codeMultipleId').html("(优惠"+yhMoney + "，" + codeMultipleNum +"倍打码)");
			}else if(1 == discountTimes){
				//每次
				if(money>=auditDiscountStandard){
					//次数小于优惠系数
					if(preRatioOnline >= parseInt(haveDiscountTimes)+1){
						if(money >= (upMoney + 0.0001)){
							yhMoney = (upMoney*parseFloat('0.5')/100);
						}
						if(preUp <= yhMoney){
							yhMoney = preUp;
						}
						yhMoney = round2(yhMoney,2); 
					}else {
						yhMoney = 0; 
					}
				}else{
					yhMoney = 0; 
				}
				$('#codeMultipleId').html("(优惠"+yhMoney + "，" + codeMultipleNum +"倍打码)");
			}
		}
		
		if(isNaN(money)){
			$('#amtid').html('&nbsp;请您输入充值金额');
			return;
		}
		
		if(!reg.test(money)){
			$('#amtid').html('&nbsp;请您输入充值金额');
			return;
		}
		
		if((dwMoney - 0.0001) >= money) {
			$('#amtid').html('&nbsp;最低金额' + dwMoney);
			sub=0;
			getKey();
			$("#money").val("");
			return;
		}

		var dec = 1.0E-4
		
		if(money >= (upMoney + dec )) {
			 
			$('#amtid').html('&nbsp;最高金额' + upMoney);
			sub=0;
			getKey();
			$("#money").val("");
			return;
		}
		$('#amtid').html('');		
	};
	$('#p3_Amt').keyup(function(){
		p3AmtChange();
	});
	
	paysubmit = function(ts){
		if(sub==1)return false;
		sub=1;
		if(isNaN($('#p3_Amt').val())||$('#p3_Amt').val()=='') { //amtid
			alert("请您输入充值金额");
			$('#amtid').html("请您输入充值金额");
			sub=0;
			getKey();
			$("#p3_Amt").val("");
			return false;
		}
		if(!reg.test($('#p3_Amt').val())){
			$('#amtid').html('&nbsp;请您输入充值金额');
			sub=0;
			getKey();
			$("#p3_Amt").val("");
			return false;
		}
		var p3_Amt =  parseFloat($('#p3_Amt').val());
		var quota = parseFloat($("#quotaId").val());
		if (quota > 0 && p3_Amt > quota ) {
			alert("您输入金额有误");
			sub = 0;
			getKey();
			$("#p3_Amt").val("");
			return false;
		}
		var dec = 1.0E-4
		if((dwMoney-0.0001)>=p3_Amt || p3_Amt>=(upMoney+dec)) {
			alert("您输入金额有误");
			sub=0;
			getKey();
			$("#p3_Amt").val("");
			return false;
		}
        var rmNum = $('#rmNum').val()? $('#rmNum').val() :'';
		/*
		不验证 验证码
		if(rmNum == ""){
			alert("请输入验证码");
			sub=0;
			getKey();
			return false;
		}*/
		
		document.getElementById("userid").value = document.getElementById("user_id").innerText;
		var var_userid = document.getElementById("user_id").innerText;	//		$("#user_id").innerText;
		
		if(var_userid == null || var_userid == "" )
		{
				alert('玩家ID不可为空，请重新登录');
				return false;
		}

		sub=0;
		var payType = $("#payType").val();
		return true;
		
		
		var isOutreach = $("#isOutreach").val();
		$.ajax({
		   	type:'POST',
		   	url:ctx + 'do_payonline.php',
				data:'actionType=moneyCheck&amount='+$('#p3_Amt').val()+'&validCode='+rmNum+'&payType='+payType+'&userid='+var_userid+ '&isOutreach='+isOutreach,
		 	dataType: 'json',
		 	async: false,
		 	cache:false,
			success : function(res) {
		   	    console.info(res);
				if(!res.success){
					alert(res.msg);
					sub=0;
					getKey();
					window.location.reload();
					return false;
				}else{
					var low = parseFloat(res.drawLowOnline);
					var ups = parseFloat(res.drawUpOnline);
					var amount1 = parseFloat($('#p3_Amt').val());
					if(!(low<=amount1 && amount1<=ups)){
						//alert('存款的金额必须在'+low+'～'+ups+'内.');
						alert('您输入的金额有误');
						sub=0;
						getKey();
						return false;
					}
					showMsgWindow(res);
				}
			},
			error:function(a,b,c){
				sub=0;
				getKey();
			}
		});
		//
	};
	function showMsgWindow(_res){
		$('#youhuiid').html(_res.prePerOnline);
		$('#zuigaoid').html(parseFloat(_res.preUpOnline).toFixed(2));
		if(_res.online && _res.online>0){
			$('#onlineid').html(_res.online);
		}else{
			$('#showOnlineId').hide();
		}
		if(_res.prePerOnline1!='-1' || _res.prePerOnline1!=-1){
			if(_res.prePerOnline1=='-2' || _res.prePerOnline1==-2){
				$("#payformid").submit();
				setTimeout(function(){
					var auditingStatus;
					try{auditingStatus = window.opener.auditingStatus.value;}catch(e){}
					if(auditingStatus == null){
						try{auditingStatus = window.dialogArguments.document.getElementById("auditingStatus").value;}catch(e){}
					}
					if(auditingStatus == null){
						try{auditingStatus = parent.document.getElementById("auditingStatus").value;}catch(e){}
					}
					if(auditingStatus == 1){
		        		window.opener.selectHotelChrome(); 
					}else{
					    //调用父级 函数 恢复存款初始页面
                        window.parent.QSFUN.MChgPager({method: 'bankSavings'});
					}
					window.close();
		        },3000)
			}else {
				$('#myChooseId').hide();
				showWindowMsg();
			}
		}else if(_res.prePerOnline1=='-2' || _res.prePerOnline1==-2 ) {
			$("#payformid").submit();
			setTimeout(function(){
				var auditingStatus;
				try{auditingStatus = window.opener.auditingStatus.value;}catch(e){}
				if(auditingStatus == null){
					try{auditingStatus = window.dialogArguments.document.getElementById("auditingStatus").value;}catch(e){}
				}
				if(auditingStatus == null){
					try{auditingStatus = parent.document.getElementById("auditingStatus").value;}catch(e){}
				}
				if(auditingStatus == 1){
	        		window.opener.selectHotelChrome(); 
				}else{
				    //调用父级 函数 恢复存款初始页面
                    window.parent.QSFUN.MChgPager({method: 'bankSavings'});
				}
				window.close();
	        },3000)
		}else{
			$('#myChooseId').hide();
			showWindowMsg();
		}
	};
	function showWindowMsg(){
			var applydiscount = $('#applydiscount_id').val();
			var yhmoney = $('#codeMultipleId').text();
			var resyes = 0;
			//先判断没达到标准 则申请时无效的
			if(yhmoney.indexOf("优惠0")>0&&!yhmoney.indexOf("优惠0.")>0){
				$('input[name="mcs"]:eq(0)').attr("checked","checked");
				resyes = 0;
			}else {
				if(1 == applydiscount){
					//申请优惠
					$('input[name="mcs"]:eq(1)').attr("checked","checked");
					resyes = 1;
				}else {
					//不申请优惠
					$('input[name="mcs"]:eq(0)').attr("checked","checked");
					resyes = 0;
				}	
			}
			//var resyes = $('input[name="mcs"]:checked').val();
			$('#r_youhui').val(resyes);
		 	document.getElementById('payformid').submit();
		 	
		 	setTimeout(function(){
				var auditingStatus;
				try{auditingStatus = window.opener.auditingStatus.value;}catch(e){}
				if(auditingStatus == null){
					try{auditingStatus = window.dialogArguments.document.getElementById("auditingStatus").value;}catch(e){}
				}
				if(auditingStatus == null){
					try{auditingStatus = parent.document.getElementById("auditingStatus").value;}catch(e){}
				}
				if(auditingStatus == 1){
	        		window.opener.selectHotelChrome(); 
				}else{
				    //调用父级 函数 恢复存款初始页面
                    window.parent.QSFUN.MChgPager({method: 'bankSavings'});
				}
				window.close();
	        },3000)
		 	
			/*$("#showMsgWindow").dialog({
				title : '确认',
				hide: "explode",
				width:400,
			    height:260,
				bgiframe: true,
			    resizable: false,
			    modal: false,
			    buttons : {
			    	'确认' : function(){
			    		var resyes = $('input[name="mcs"]:checked').val();
			    		$('#r_youhui').val(resyes);
			    		
			    		setTimeout(function(){
			    			var auditingStatus;
							try{auditingStatus = window.opener.auditingStatus.value;}catch(e){}
							if(auditingStatus == null){
								try{auditingStatus = window.dialogArguments.document.getElementById("auditingStatus").value;}catch(e){}
							}
							if(auditingStatus == null){
								try{auditingStatus = parent.document.getElementById("auditingStatus").value;}catch(e){}
							}
							if(auditingStatus == 1){
				        		window.opener.selectHotelChrome(); 
							}else{
							    //调用父级 函数 恢复存款初始页面
		                        window.parent.QSFUN.MChgPager({method: 'bankSavings'});
							}
							window.close();
				        },3000)
						$("#showMsgWindow").dialog("close");
			    	},
			    	'取消' : function(){
			    		$("#showMsgWindow").dialog("close");
			    		sub=0;
			    	}
			    }
			 });*/
	}
	 function cancelMouse(){return false;}
	 document.oncontextmenu = cancelMouse;
});



function add_zero(temp)
{
 if(temp<10) return "0"+temp;
 else return temp;
}

function round2(v, e) {
	  var d = parseFloat(v);
	  if(isNaN(d))d=0.0;
	  return d.toFixed(2);
}

/**
 * 即時時間顯示
 **/
function dispTime(){
    current  += 1000;
    var F = new Date(current);
    var localOffset=F.getTimezoneOffset()*60000;
    //offsettime = (0-localOffset)+offsettime;
   // var utc = F.getTime() - localOffset;
    var hawaii = F.getTime() - ((0-localOffset)-offsettime); 
    F.setTime(hawaii);
    var Y = F.getFullYear();

    var Mh = F.getMonth() + 1;
    if(Mh > 12) Mh = 01;
    if(Mh < 10) Mh = '0'+Mh;

    var D = F.getDate()  < 10 ? '0'+F.getDate():F.getDate();
    var H = F.getHours() < 10 ? '0'+F.getHours():F.getHours();
    var M = F.getMinutes() < 10 ? '0'+F.getMinutes():F.getMinutes();
    var S = F.getSeconds() < 10 ? '0'+F.getSeconds():F.getSeconds();
    $('#EST_reciprocal').html(Y+'/'+Mh+'/'+D+' - '+H+':'+M+':'+S);
}
function clearNoNum(obj)  
{  
	obj.value = obj.value.replace(/[^\d]/g,"");

    obj.value = obj.value.trim(); // 去掉空格
    if (obj.value !== '') { // 去掉前缀多出的0
    	var nmArr = obj.value.split('.');
    	if (nmArr[0] !== '') {
    		nmArr[0] = Number(nmArr[0]);
    	}
    	obj.value = nmArr.join('.')
    }
  /*
   	obj.value = obj.value.replace(/[^\d.]/g,"");  //清除“数字”和“.”以外的字符  
    obj.value = obj.value.replace(/^\./g,"");  //验证第一个字符是数字而不是.  
    obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的  
    obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");  
    obj.value=obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3');//只能输入两个小数
  */
}


</script>

<style type="text/css">
	#submitid:hover
	{
			background: url("Images/payok2.jpg"); 	//这是改变背景色
			background-repeat: no-repeat;					 	//这是让背景色不平铺
			color: red; 														//这是让字体变为红色
	}	
#amtid{
		padding: 0;
		float: left;
		margin-left: 8px;
		margin-top: 5px
	}
#p3_Amt {
	outline: none;
    display: inline-block;
    height: 22px;
    width:4rem;
}

#p3_AmtPointRemark {
	font-size: 10px;
    color: #ff8213;
    margin: 0 0 10px 3px;

}
 input#p3_Amt{
        border: 1px solid rgb(198, 198, 198);
}
</style>  
<script type='text/javascript'>
$(function(){
	//--------------------------------------------------随机小数点-------------------------------------------
	var initialMin = 0.1;
	var initialMax = 0.49;
	var initialMinute = 10;
	//获取当前时间
	function getNowFormatDate() {
	    var date = new Date();
	    var seperator1 = "-";
	    var seperator2 = ":";
	    var month = date.getMonth() + 1;
	    var strDate = date.getDate();
	    if (month >= 1 && month <= 9) {
	        month = "0" + month;
	    }
	    if (strDate >= 0 && strDate <= 9) {
	        strDate = "0" + strDate;
	    }
	    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
	            + " " + date.getHours() + seperator2 + date.getMinutes()
	            + seperator2 + date.getSeconds();
	    return currentdate;
	}
	
	//读取Cookie
	function getCookie(name)
	{
		var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
		if(arr=document.cookie.match(reg))
		return unescape(arr[2]);
		else
		return null;
	}
	
	//设置Cookie time=过期时间
	//s20是代表20秒
	//h是指小时，如12小时则是：h12
	//d是天数，30天则：d30
	function setCookie(name,value,time)
	{
		var strsec = getsec(time);
		var exp = new Date();
		exp.setTime(exp.getTime() + strsec*1);
		document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
	}
	//删除Cookie
	function delCookie(name)
	{
		var exp = new Date();
		exp.setTime(exp.getTime() - 1);
		var cval=getCookie(name);
		if(cval!=null)
		document.cookie= name + "="+cval+";expires="+exp.toGMTString();
	}
	//格式参数
	function getsec(str)
	{
		var str1=str.substring(1,str.length)*1;
		var str2=str.substring(0,1);
		if (str2=="s")
		{
			return str1*1000;
		}
		else if (str2=="h")
		{
			return str1*60*60*1000;
		}
		else if (str2=="d")
		{
			return str1*24*60*60*1000;
		}
	}
	
	//判断是否超过十分钟
	function compareDate(nowDate,cookieDate){
	    var oDate1 = new Date(nowDate);
	    var oDate2 = new Date(cookieDate);
	    if(oDate1.getTime() > (oDate2.getTime() + (1000 * 60 * 10 ))){
	    	setCookie("date",nowDate,"d1000");
	        return true;
	    }
	    return false;
	}
	
	function isNullStr(str){
		if(str==null || str=="" || str=="undefined"){
			return true;
		}
		return false;
	}

	//是否生成随机数
	function isRefresh(){
		var nowDate = getNowFormatDate();
		var cookieDate = getCookie("date");
		if(isNullStr(cookieDate)){
			setCookie("date",nowDate,"d1000");
			return true;
		}
		//检查是否超过十分钟
		window.isFlag = compareDate(nowDate,cookieDate);
		return window.isFlag;
	}
	initAmtPoint();
	if (navigator.cookieEnabled){
		 
		setInterval(initAmtPoint, 1000);
	}else{
		 
		setInterval(initAmtPoint, 10000);
	}
	var i = 0;
	function initAmtPoint() {	
		 
		if(isRefresh()){
			changeAmtPoint();
		}else{
			var val = getCookie("val");
			if(isNullStr(val)){
				changeAmtPoint();
			}else{
				putAmtPoint(val);
			}
		}
	}
 
	function randomPointText(min, max){
		min *= 100;
		max *= 100;
	    var range = max - min;
	    var rand = Math.random();
	    var num = (min + Math.round(rand * range)) / 100;
	    var ret = num.toString();
	    if(ret.length == 3) {
	    	ret += "0";
	    }
	    return ret.substring(1);
	}
 
	function changeAmtPoint() {		
		var val = randomPointText(initialMin, initialMax);
		putAmtPoint(val);
		setCookie("val",val,"d1000");
	}
	function putAmtPoint(val) {		
		$("#p3_AmtPoint").val(val);
		$("#p3_AmtPointSpan").text(val);
		$("#p3_AmtPointRemarkValue").text("0" + val);	
		 tipMoney();
	}
	$("#p3_Amt").focus(function() {
 
		var flag = 0;
		if(flag==1){
			$(this).css("border", "1px solid #ff8213");
           // $(this).css("height", "20px");
			$("#p3_AmtPointSpan").css("background-color", "#ff8213");
		}

	});
	$("#p3_Amt").blur(function() {
		if($("#p3_Amt").val() == "") {
			$(this).css("border", "1px solid #c6c6c6");
		//	$(this).css("height", "20px");
			$("#p3_AmtPointSpan").css("background-color", "#c6c6c6");
		}
	});

	function tipMoney(){
	 
    	var amt = $('#p3_AmtPointRemarkValue').text();
    	var point =  parseFloat("0"+amt) ;
    	//dean 优惠信息提示
    	var money = parseFloat($('#p3_Amt').val()) + point ;
    	var yhMoney = money*parseFloat('0.5')/100;
		yhMoney = round2(yhMoney,2);
		
		var upMoney = parseFloat('10000');
		var dwMoney = parseFloat('50.00');
		if(window.isFlag &&  upMoney >= money && money >= dwMoney ){
    	$("#offer").text(yhMoney);
	        $('#codeMultipleId').html("(优惠"+yhMoney + "，1倍打码)"); 
	        window.isFlag = false;
	}
	}
	
	//---------------------------------------------------------------------------------------------
});
</script>

</head>
<body id="bank_body" >
<div style="width: 96%;margin: 3px; auto;">
	<div id="showMsgWindow" style="display: none;" title="讯息窗口">
		<div align="left" style="margin-top: 40px;">
			尊敬的会员，你好：<br />
				恭喜您可获得<span id="youhuiid"></span>%存款优惠，最高$<span id="zuigaoid"></span><span id="showOnlineId">,达到有效投注<span id="onlineid"></span>倍即可提款！</span>（活动详情请参阅优惠活动）<br /><br />
				<div id="myChooseId">
					<input type="radio" name="mcs" checked="checked" value="1" />我要选择存款优惠 <br />
					<input type="radio" name="mcs" value="0" />我要放弃存款优惠 <br />
				</div>
		</div>
	</div>

	<div id="bank_content" style="height: 303px;">
		<div id="pay_title">填写付款人资料</div>
		<div id="pay_info">
			<form id="payformid" method="post" action="do_payonline.php?actionType=scan_pay" target="_blank">
				<!-- ************* -->
				<input type="hidden" name="youhui" id="r_youhui" value="1" />
				<input type="hidden" id="userid" name="userid" value="" />
				<input type="hidden" id="payType" name="payType" value="" />
				<input type="hidden" id="bankkey" name="bankkey" value="" />
				<input type="hidden" id="payBank" name="payBank" value="ALIPAY" />
				<input type="hidden" id="isOutreach" name="isOutreach" value="" />
				<!-- ************* -->
				<ul>
					<li class="pay_info">
						<div class="lable"><span class="star" style="margin-left: 2px;">*</span>会员ID：</div>
						<div class="input"> <span id="user_id">  </span>
							
						</div>
						</li>
					<li class="pay_info" style="line-height: normal;">
						<div class="lable" style="margin-top:4px;">
							<span class="star">*</span> 充值金额：
						</div>
						<div class="input">						    
							<input type="text" size="12" name="amount" id="p3_Amt"
								   style="border: 1px solid rgb(198, 198, 198);"
								   
								   
									   placeholder="50--10000"
								   
								   onkeyup="clearNoNum(this)"/>
							<div style="float: right; width: 80px;">
								 								
								<span class="star" id="amtid"></span>
							</div>
						    <div id="moneyDetails" style="display: none">
						    </div>
										
						</div>
					</li>
					
					<li class="pay_info" id="applydiscountLi" style="line-height: normal;display:none">
						<div class="lable">
							<span class="star">*</span> 申请优惠：
						</div>
						<div class="input">
							<select name="applydiscount" id="applydiscount_id" style="width: 166px; margin-left: 3px">
								<option value="1" label="申请">申请</option>
								<option value="2" label="不申请">不申请</option>
							</select>
							<span class="star" id="codeMultipleId" style="padding-left: 0px;">(优惠0，1倍打码)</span>
						</div>
					</li>
					
					<li class="pay_info" style="display: none">
						<div class="lable">
							<span class="star">*</span> 验证码：
						</div>
						<div class="input">
							<input id="rmNum" name="validCode" class="login_input02" onfocus="getKey();" type="text" title="( 点击下面图片产生新验证码 )" maxlength="4" size="7" name="rmNum" />
								 <font color="red" id="msg_pay_id">
									 
									 
									  	输入下面验证图示内显示的数字
									 
								 </font>
							<br />
							<img style="cursor: pointer;" id="vPic" border="1" onclick="getKey();" alt="( 点击下面图片产生新验证码 )" src="validCode.php?type=pay" />
						</div></li>
					<li class="pay_info">
						<div class="lable">&nbsp;</div>
						<div class="input">
						
						 <!-- onclick="return paysubmit(this);"  -->
							<input id="submitid" type="submit" value="" onclick="return paysubmit(this);" style="margin-left:20px;cursor: pointer;width:135px;height:42px;border:none;background:url(images/payok.jpg) left top no-repeat;" />
							<input id="resetid" type="reset"  value="" 											style="cursor: pointer;width:78px;height:42px;border:none;background:url(images/clear1.png)left top no-repeat;" />
						</div></li>
				</ul>
			</form>
		</div>
		<br />
		<br />
		<div id="note">
			<h1>温馨提醒：</h1>
			<ol>
				<li>标记有 <span style="color: #f68622">*</span> 均为必填项目，请认真填写。</li>

			</ol>
		</div> <br />
	</div>

</div>
</body>
</html>